import request from '@/utils/request'

// 查询成桌信息列表
export function listDeskmember(query) {
  return request({
    url: '/mahjong/deskmember/list',
    method: 'get',
    params: query
  })
}
// 查询成桌信息列表
export function report(query) {
  return request({
    url: '/mahjong/newreport/list',
    method: 'get',
    params: query
  })
}
// 查询成桌信息详细
export function getDeskmember(id) {
  return request({
    url: '/mahjong/deskmember/' + id,
    method: 'get'
  })
}

// 新增成桌信息
export function addDeskmember(data) {
  return request({
    url: '/mahjong/deskmember',
    method: 'post',
    data: data
  })
}

// 修改成桌信息
export function updateDeskmember(data) {
  return request({
    url: '/mahjong/deskmember',
    method: 'put',
    data: data
  })
}

// 删除成桌信息
export function delDeskmember(id) {
  return request({
    url: '/mahjong/deskmember/' + id,
    method: 'delete'
  })
}

// 导出成桌信息
export function exportDeskmember(query) {
  return request({
    url: '/mahjong/newreport/export',
    method: 'get',
    params: query
  })
}
